import ajax from './index'



export function yc_cat_list(pid) {
    return ajax({
        url: "/backend/yc/category/" + pid,
        method: "get"
    });
}

export function yc_list(condition) {
    if(!condition) {
        condition = {
            pageNum: 1,
            pageSize: 100
        }
    }
    return ajax({
        url: "/backend/yc/list",
        method: "get",
        params: condition
    });
}

export function yc_detail(no) {
    return ajax({
        url: "/backend/yc/detail/" + no,
        method: "get"
    });
}